package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author zhangyu
 * @date 2019/2/15
 */
public class PersonBean implements Parcelable {
    public PersonBean() {
    }

    public PersonBean(String user_name, String job_no) {
        this.user_name = user_name;
        this.job_no = job_no;
    }

    public PersonBean(int id, String user_name, String job_no) {
        this.id = id;
        this.user_name = user_name;
        this.job_no = job_no;
    }

    /**
     * user_name : 张三
     * job_no : 02311111
     */
    private int id;
    private String user_name;
    private String job_no;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getJob_no() {
        return job_no;
    }

    public void setJob_no(String job_no) {
        this.job_no = job_no;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.user_name);
        dest.writeString(this.job_no);
    }

    protected PersonBean(Parcel in) {
        this.id = in.readInt();
        this.user_name = in.readString();
        this.job_no = in.readString();
    }

    public static final Parcelable.Creator<PersonBean> CREATOR = new Parcelable.Creator<PersonBean>() {
        @Override
        public PersonBean createFromParcel(Parcel source) {
            return new PersonBean(source);
        }

        @Override
        public PersonBean[] newArray(int size) {
            return new PersonBean[size];
        }
    };
}
